# -*- coding: utf-8 -*-
"""
Version: 0.1
Author: CarpeDiem
Date: 2022/3/30
Description: 批量生成文件夹
"""
import os


def make_dir(number, path):
    for i in range(1, 1 + number):
        new_path = path + str(i)
        os.mkdir(new_path)
        if os.path.exists(path):
            print("文件夹 {} 创建成功！".format(i))


def main():
    number = int(input("请输入需要生成的文件夹数："))
    make_dir(number, 'testfile\\')


main()